package com.wang.service;

import com.wang.mapper.CheckDataDao;
import com.wang.pojo.CheckData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class CheckDataServiceImpl extends BaseServiceImpl implements CheckDataService {

    @Autowired
    private CheckDataDao checkDataDao;


    @Override
    public void addCheckData(CheckData checkData) {
        checkDataDao.addCheckData(checkData);
    }

    @Override
    public List<CheckData> selectCheckDataByDevCheckId(String checkDataTable,Integer devCheckId) {
        return checkDataDao.selectCheckDataByDevCheckId(checkDataTable,devCheckId);
    }

    @Override
    public CheckData selectLastParamCheck(String checkDataTable,String devCheckTable, String paramName) {
        return checkDataDao.selectLastParamCheck(checkDataTable,devCheckTable,paramName);
    }

    @Override
    public CheckData selectLastParam(String checkDataTable, String paramName) {
        return checkDataDao.selectLastParam(checkDataTable,paramName);
    }


}
